const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: 'localhost',
    port: 8080,
    proxy: {
      '/api': {
        // target: 'http://workflow.test.nj', // 目标服务器地址
        target: 'http://workflow-h5-dinghao.test.nj/dinghao', // 目标服务器地址
        changeOrigin: true,
        pathRewrite: {
          '^/api': '', // 这将会移除URL中的/api前缀
        },
      },
    },
  },
})
